﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="StandardData.aspx.cs" Inherits="FileConverter.Bas.StandardData" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div style="margin: 10px;">
        &nbsp;&nbsp;partNo：<asp:TextBox ID="txtpartNo" runat="server" />
        Parameter：<asp:TextBox ID="txtParameter" runat="server" /><asp:Button ID="btnAddStandard" runat="server" Text="增加标准" OnClick="btnAddStandard_Click" /><asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click"  />
        <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click" OnClientClick="if ( !confirm('Are you sure you want to delete this user?')) return false;" /></br>
        Nominal：<asp:TextBox ID="txtNominal" runat="server" />
       &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max：<asp:TextBox ID="txtMax" runat="server" />
        &nbsp;&nbsp;Min：<asp:TextBox ID="txtMin" runat="server" /></br>       
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File：<asp:FileUpload ID="FileUpload1" runat="server" /><asp:Button ID="btnBatchImport" runat="server" Text="批量导入" OnClick="btnBatchImport_Click" Height="30px" Width="99px" /><a href="importFormat.csv">导入模版下载</a>
        
    </div>
    <div style="margin: 10px;">
        <asp:GridView ID="GridView1" DataKeyNames="partNo,Parameter" runat="server" AutoGenerateColumns="False"
            OnRowDeleting="GridView1_RowDeleting" OnRowCancelingEdit="GridView1_RowCancelingEdit"
            OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" 
            OnSelectedIndexChanged="GridView1_SelectedIndexChanged" BackColor="White" 
            BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4"
            ForeColor="Black" GridLines="Vertical" AllowPaging="True" Width="100%" 
            OnPageIndexChanged="GridView1_PageIndexChanged" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="16" OnRowDataBound="GridView1_RowDataBound">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="partNo" HeaderText="partNo" ReadOnly="true" />
                <asp:BoundField DataField="Parameter" HeaderText="Parameter" ReadOnly="true"/>
                <asp:BoundField DataField="Nominal" HeaderText="Nominal" />
                <asp:BoundField DataField="Max" HeaderText="Max" />
                <asp:BoundField DataField="Min" HeaderText="Min" />
                <asp:CommandField ShowSelectButton="False" ShowEditButton="True" ShowDeleteButton="True"></asp:CommandField>
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
        </asp:GridView>
    </div>
</asp:Content>
